﻿#pragma once
#include"lexel.h"
#include<stdbool.h>
#include"msave.h"

QTokenList* token_list;
QToken cur_token;


typedef struct
{
	int op_vmc;
	MValue val;
}QCompVMC;
typedef struct
{
	QCompVMC vmclist[4096];
	int cur_id;
}QCompVMClist;
typedef struct
{
	int row;
	int line;
	char* info;
}QCompErr;


void QInitCompile(QTokenList* tl);
QCompErr* QMakeCompile();
bool QOutputVmc(char* path);//输出字节码
